import Mock from 'mockjs'
import base from './base/index'
interface MockIetm {
  url: string
  method: string
  response: object
}

let list: MockIetm[] = [...base]
export default () => {
  list.forEach((item) => {
    Mock.mock(item.url, item.method || 'get', item.response)
  })
}
